extends Node

signal team_scored_request(country_scored_on: String)
signal team_reset_request
signal score_changed_request
signal kickoff_ready_request
signal kickoff_started_request
signal ball_possessed_request(player_name: String)
signal ball_released_request
signal game_over_request(country_winner: String)
signal impact_received_request(impact_position: Vector2, is_high_impact: bool)

func team_scored(country_scored_on: String) -> void:
	team_scored_request.emit(country_scored_on)
	
func team_reset() -> void:
	team_reset_request.emit()
	
func kickoff_ready() -> void:
	kickoff_ready_request.emit()
	
func kickoff_started() -> void:
	kickoff_started_request.emit()
	
func ball_possessed(player_name: String) -> void:
	ball_possessed_request.emit(player_name)
	
func ball_released() -> void:
	ball_released_request.emit()
	
func score_changed() -> void:
	score_changed_request.emit()
	
func game_over(country_winner: String) -> void:
	game_over_request.emit(country_winner)
	
func impact_received(impact_position: Vector2, is_high_impact: bool = false) -> void:
	impact_received_request.emit(impact_position, is_high_impact)
